﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OPM.Models
{
    public class TimelineOperating
    {
        public string id { get; set; }
        public string case_id { get; set; }
        public string line { get; set; }
        public string operating_code { get; set; }
        public string is_contact { get; set; }
        public string operating_type_id { get; set; }
        public string operating_type_text { get; set; }
        public string status_id { get; set; }
        public string status_text { get; set; }
        public string operating_date { get; set; }
        public string org_id { get; set; }
        public string org_text { get; set; }
        public string officer_id { get; set; }
        public string officer_text { get; set; }
        public string image_base_64 { get; set; }
        public string ShowDateTime { get; set; }
        public string summary { get; set; }
        public string created_by { get; set; }
        public string created_by_text { get; set; }

        public string _is_received { get; set; }
        public string is_received
        {
            get
            {
                return _is_received;
            }
            set
            {
                if (is_received == "T")
                {
                    _is_received = "รับงานแล้ว";
                }
                else
                {
                    _is_received = "รอการตอบรับ";
                }
            }
        }
    }

}
